<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!-- Driver Edit -->
<div class="container">
	<div class="row text-center outer"><h3>${dirver.name}</h3></div>
	<div class="row hidden" id="dirverJson">${dirverJson}</div>
	
	<!-- 驱动信息面板 -->
	<div class="row container">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="row">
					<div class="col-md-5">
						<div class="row">
							<div class="col-md-2"><span class="" id="sourceIcon"></span></div>
							<div class="col-md-10">
								<p id="sourceType"></p>
								<p>数据源：${dirver.sourceMapping.config.table}</p>
							</div>
						</div>
					</div>
					
					<div class="col-md-2 text-center outer">
						<div class="row-fluid">
					        <div class="span4"><span class="fa fa-arrow-right fa-3x"></span></div>
					        <div class="span8" id="driverEditStateChange"></div>
					    </div>
					</div>
					
					<div class="col-md-2"></div>
					<div class="col-md-3">
						<div class="row">
							<div class="col-md-4"><span class="" id="targetIcon"></span></div>
							<div class="col-md-8">
								<p id="targetType"></p>
								<p>目标源：${dirver.mappings[0].config.table}</p>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	
	<!-- 驱动配置切换操作 -->
	<div class="row" id="driverEditConfigChange">
		<div class="col-sm-2">
			<input type="radio" name="driverEditConfig" value="migration"> 数据迁移
		</div>
		<div class="col-sm-2">
			<input type="radio" name="driverEditConfig" value="sync"> 数据同步
		</div>
		<div class="col-sm-6"></div>
		<div class="col-md-2 text-right outer">
			<button id="driverSubBtn" type="button" class="btn btn-primary driverEnable"><span class="fa fa-save"></span>保存</button>
			<button id="driverBackIndexBtn" type="button" class="btn btn-default"><span class="fa fa-reply"></span>返回 </button>
		</div>
	</div><br />
	
	<!-- 驱动配置区域 -->
	<div id="driverEditConfigContainer" class="row container"></div>
	
</div>

<script type="text/javascript">
//加载驱动JS
$.getScript($basePath+'/style/js/driver/driverEdit.js');
</script>